#Algorithms in C++
Explore tagged Tumblr posts
Text
❄️☃️The SDV Girlies in their winter garb!☃️❄️
One side how i interpreted their lil avatars and then the other side is just me playing dress up lmao.
“Bois when?” Dunno. 🤷🏽♀️ I will if anyone donates screenshots.
#stardew valley#stardew valley 1.6#stardew valley winter#stardew valley maru#stardew valley haley#stardew valley penny#stardew valley leah#stardew valley emily#stardew valley abigail#sdv maru#sdv haley#sdv penny#sdv leah#sdv emily#sdv abigail#i was sweating drawing this#the ph is having a fucking heatwave at 40*C / 104*C#and i’m not even living in the city where its definitely worse!!!#my pinterest algorithm probably thinks i’m insane for searching up winter outfits#penny looking lightly dressed for winter in her 2nd lewk but she’s dressed in several layers in dresses and skirts#i just wanted to show a lil bit of the layered neckline#ngl my fave lewk has to be emily!#she probably made her whole ensamble from scratch#abgail probably goes around lightly dressed#‘cold never bothered her anyway’ -elsa#haley going from cocnut girl to cold girl aesthetic#also i based maru’s outfit in this really cool chinese obre puffer jacket + 90s pastel tracksuit#with leah… what can i say gay in primary colors#thank you to henarikat for sending me a screenshot of their avatars!!!!!!#and also for being a beta for Haley and Penny’s looks hahaha
5K notes
·
View notes
Text

BRB gonna invent hypercube C
It's a time-agnostic programming language
You can run code last week
#it allows for the most efficient sorting algorithms at O(0)#O(-1): the list was sorted before it was made#programming#c programming#c++#computer science#degenerwrote
401 notes
·
View notes
Text
the protOS gossips
i love protos and especially heart can you guess I really like heart protos plese beleive me she is the most stylized there too look at their little wings aw look look heart protos
This is not the subject anyways support protagonist object show on kickstarter and read it !!! (This is a threat) ❤️
#protos#protagonist object show#object shows#osc#heart protos#lampy protos#metro card protos#bfdi#tpot#last two tags for the algorithm or something i have no idea how this works#art#osc art#protagonist os#whatveer#are there any other tags for protos#i love heart protos#heart protos ily#hi#bye#osc community#yes this says osc community heh#why the fuck does it say osc community#what is the las c in osc for if it says osc community
30 notes
·
View notes
Text

No idea where all y'all came from, but hi??? Wow. Also darn I missed getting a screenshot of exactly 100 :c
UHHHHHHH Ive barely been active on here for like a few weeks and Ive alr met so many new people 👀
#cimmers ramblings#idk how it is for others but Tumblr is so nice?!?!?!#I've just been seeing and meeting all these nice ppl here#kinda bummed I never bothered to explore this place sooner :C I was missing out y'all r awesome#there's all this ART here and COMICS.... FAN COMICS N THEYRE FREE AND SO COOL#when U get the algorithm giving U the stuff U wanna see it's awesome here
9 notes
·
View notes
Text


that's not what i meant by "brown pants" pinterest -_-
#i got some straight fit brown corduroy pants from lucky brand for $30#and idk how to style b/c i only wear blue/black jeans out#and ummm my friends that dress well r on pinterest a lot. but maybe i need to build an algorithm first
2 notes
·
View notes
Text
my tl is such a weird mash of pwhl/hating on Britta curl, whatever is happening in the ecf tonight, and also cat photos and all I can say is ahhhhh playoffs
2 notes
·
View notes
Text
someone please tell me that getting a C in analysis of algorithms isn't the end of the world
#ive only ever gotten 1 C before and it was a C+ in bio my freshman year#analysis of algorithms is my last required course for my degree#i just need to pass it with at least a C- to get my degree#trying not to spiral. a C isn't that bad. right? like not something to kill yourself over. right?#the goal is to get a C- or higher and then take 3 computer science electives in the fall with C- or higher#then i get my degree#the goal is the degree. right? how important is GPA? my current gpa is 3.59 l#trying to keep it above 3.5
3 notes
·
View notes
Text
Got jumpscared by my own full legal name showing up in my email notifications bc I forgot I emailed my code to myself today just in case my VM ends up stopping working again (I got nervous & didn't wanna lose my progress lol)
Goldfish level memory retention
& the funny thing is that the email itself is just. This

Full Legal Name code • hi
#speculation nation#title 'code' email is just 'hi'. with the .c file attached of course#honestly i had a very productive day in lab today. i got the core structure of the program down and made sure it all worked#testing it with One of the sorting algorithms. and it worked!!#the lab is to code functions for different kinds of sorts. like bubble sort selection sort and uhh. some other shit idr rn#and have the functions take timestamps from before and after they run the sorts to calculate the elapsed time#and we have to run this for array sizes of like. 10 50 500 etc etc up to like 50000 or smth? if i remember right.#and then once all that's done we take the output and graph the time elapsed for each type of sort/search per array sizes#so today at lab i made the random array generator function. a swap function. the execution function. bubble sort. and main.#main calls the execution function passing in the array sizes. execution(10); execution(50); etc#execution defines the array of that size. then calls the random number generator to populate the array. then passes it to the sort functions#tested with my one bubble sort function. which finished in like 0.00003 seconds or smth for array size 10#BUT taking the time stamps was tricky. there are a lot of ways to do that. and time(); in c is in full seconds#i ended up asking the TA if he had a recommendation for what to use bc theres a LOT of time functions out there#and full seconds isnt precise enough for this purpose. & he recommended clock()!!#records number of clock ticks which is NOT the same as seconds. but when u divide it by uh. forgetting it rn but it's a constant#that will turn it into actual seconds. clock tics per sec?? smth like that.#so anyways very productive 👍 i just need to set main up to call execution function for all the different array sizes#and then write all the functions for the different sorts/searches. but i have the core structure down with the bubble sort function#(specifically with the time stamps and the print function after) that i will copy-paste for all the other functions#and then inside them i put the basic code. none of it's complicated. all can be found on the internet easy.#SO!!!!! honestly i think itd take me less than an hour to finish. tho plotting out that graph is going to be annoying#something like 6 sizes per 5 sort/search functions. painstakingly copy pasting each one into excel or smth lol#but yea im content with how much ive gotten done. yippee!!!!#now i just need to finish my web programming lab before sunday night. blehhhhh
2 notes
·
View notes
Text
Normally I just post about movies but I'm a software engineer by trade so I've got opinions on programming too.
Apparently it's a month of code or something because my dash is filled with people trying to learn Python. And that's great, because Python is a good language with a lot of support and job opportunities. I've just got some scattered thoughts that I thought I'd write down.
Python abstracts a number of useful concepts. It makes it easier to use, but it also means that if you don't understand the concepts then things might go wrong in ways you didn't expect. Memory management and pointer logic is so damn annoying, but you need to understand them. I learned these concepts by learning C++, hopefully there's an easier way these days.
Data structures and algorithms are the bread and butter of any real work (and they're pretty much all that come up in interviews) and they're language agnostic. If you don't know how to traverse a linked list, how to use recursion, what a hash map is for, etc. then you don't really know how to program. You'll pretty much never need to implement any of them from scratch, but you should know when to use them; think of them like building blocks in a Lego set.
Learning a new language is a hell of a lot easier after your first one. Going from Python to Java is mostly just syntax differences. Even "harder" languages like C++ mostly just mean more boilerplate while doing the same things. Learning a new spoken language in is hard, but learning a new programming language is generally closer to learning some new slang or a new accent. Lists in Python are called Vectors in C++, just like how french fries are called chips in London. If you know all the underlying concepts that are common to most programming languages then it's not a huge jump to a new one, at least if you're only doing all the most common stuff. (You will get tripped up by some of the minor differences though. Popping an item off of a stack in Python returns the element, but in Java it returns nothing. You have to read it with Top first. Definitely had a program fail due to that issue).
The above is not true for new paradigms. Python, C++ and Java are all iterative languages. You move to something functional like Haskell and you need a completely different way of thinking. Javascript (not in any way related to Java) has callbacks and I still don't quite have a good handle on them. Hardware languages like VHDL are all synchronous; every line of code in a program runs at the same time! That's a new way of thinking.
Python is stereotyped as a scripting language good only for glue programming or prototypes. It's excellent at those, but I've worked at a number of (successful) startups that all were Python on the backend. Python is robust enough and fast enough to be used for basically anything at this point, except maybe for embedded programming. If you do need the fastest speed possible then you can still drop in some raw C++ for the places you need it (one place I worked at had one very important piece of code in C++ because even milliseconds mattered there, but everything else was Python). The speed differences between Python and C++ are so much smaller these days that you only need them at the scale of the really big companies. It makes sense for Google to use C++ (and they use their own version of it to boot), but any company with less than 100 engineers is probably better off with Python in almost all cases. Honestly thought the best programming language is the one you like, and the one that you're good at.
Design patterns mostly don't matter. They really were only created to make up for language failures of C++; in the original design patterns book 17 of the 23 patterns were just core features of other contemporary languages like LISP. C++ was just really popular while also being kinda bad, so they were necessary. I don't think I've ever once thought about consciously using a design pattern since even before I graduated. Object oriented design is mostly in the same place. You'll use classes because it's a useful way to structure things but multiple inheritance and polymorphism and all the other terms you've learned really don't come into play too often and when they do you use the simplest possible form of them. Code should be simple and easy to understand so make it as simple as possible. As far as inheritance the most I'm willing to do is to have a class with abstract functions (i.e. classes where some functions are empty but are expected to be filled out by the child class) but even then there are usually good alternatives to this.
Related to the above: simple is best. Simple is elegant. If you solve a problem with 4000 lines of code using a bunch of esoteric data structures and language quirks, but someone else did it in 10 then I'll pick the 10. On the other hand a one liner function that requires a lot of unpacking, like a Python function with a bunch of nested lambdas, might be easier to read if you split it up a bit more. Time to read and understand the code is the most important metric, more important than runtime or memory use. You can optimize for the other two later if you have to, but simple has to prevail for the first pass otherwise it's going to be hard for other people to understand. In fact, it'll be hard for you to understand too when you come back to it 3 months later without any context.
Note that I've cut a few things for simplicity. For example: VHDL doesn't quite require every line to run at the same time, but it's still a major paradigm of the language that isn't present in most other languages.
Ok that was a lot to read. I guess I have more to say about programming than I thought. But the core ideas are: Python is pretty good, other languages don't need to be scary, learn your data structures and algorithms and above all keep your code simple and clean.
#programming#python#software engineering#java#java programming#c++#javascript#haskell#VHDL#hardware programming#embedded programming#month of code#design patterns#common lisp#google#data structures#algorithms#hash table#recursion#array#lists#vectors#vector#list#arrays#object oriented programming#functional programming#iterative programming#callbacks
20 notes
·
View notes
Text
nevermind i Hate coding forever
#ignore me im salty. how DARE i be unable to put down this algorithm even in pseudocode#ghghhrgrrgnbgbghrbg.#>:c#im upset.#i need so many nested loops and conditionals and it feels very wrong to go so many indented lines i swear it should be more efficient than-#-this but i can't figure out how#AGH! GAAAAAAH#im fine its fine its Fine#🌙rambling
7 notes
·
View notes
Note
okay hold on, hiii it’s me the person running the cougars tumblr.
what… what algorithm do you think you’re “gaming”? im gonna be straight up with you, putting random-ass tags on your posts doesn’t do anything here except annoy people who are scrolling those tags trying to see actual content about those tags
the way you grow on tumblr is to make posts that people want to see (and tag them accordingly) or interact with people with asks, replies, reblogs etc
hope this helps lol
answering asks to game the tumblr algorithm (rq) 🔥🔥🔥
#deadpool#ps5#makeup#taylor swift#civil engineering#the hobbit#the maze runner#football#hockey#like a boss#dragons#tumblr algorithm#poems on tumblr#ap physics c#these are all relevant to this post#memes#clearly not gaming the algorithm#shhh dont tell them tho#how to game the tumblr algorithm is a well-kept secret#tags arent meant to be used!!!#they just cant do it like we do#LET US BE WHIMSICAL#dean kamen loves you#dean kamen#happy kids#travis scott fein#roblox#we are content MACHINES
2 notes
·
View notes
Text
HAL 9000 is like if they used chatGPT instead of a Logitech controller on that submarine
#does this mean Stockton Rush became a space baby? perhaps#shitpost#meme#memes#hal 9000#Heuristically programmed ALgorithmic computer#2001 aso#2001#2001 a space odyssey#space odyssey#arthur c clarke#stanley kubrick#titan submersible#titan submarine#titanic#submarine#stockton rush
41 notes
·
View notes
Text


// August 18th, 2024
Yesterday I broke in tears because I think I’m going to fail Data Structures and Algorithms this semester. It’s just, too much. Not the topics I have to study, not even that I don’t actually enjoy practicing it, oh no. It’s that I don’t think I’m going to be able to send all of my assignments on time and they affect the final grade a lot. The materials for all three subjects get released only on Wednesdays at noon and it’s expected that an almost impossible amount of assignments are delivered before the following Tuesday at 8 p.m.
Why can’t I, for instance, do the work, send it as soon as I have it ready, and they can just take into account that I actually followed on the lessons and studied hard for the two exams before the final? It’s just… I don’t know. It seems ridiculous to me. I would be doing my best even without having that stupid pressure of doing the assignments on time, like any other person who is serious about theirs studies. I know I probably sound like a stupid kid, but people going to this university at night usually have a job already, otherwise, why wouldn’t we be taking the lessons on mornings/afternoons? Don’t they think about those cases? Incredible.
And I know one can probably think, “well, why don’t you drop that subject and follow up others and retake this one further in the future?
And the answer to that is, a) I’m feeling old to keep postponing my graduation (35 is becoming my least worst shot) and b) I have more plans, like for other important aspects of my life as well. And… ugh. The pressure. It’s too much.
I spoke to my sweet boyfriend about all these worries I have and he’s happy with both me telling him what I feel and how hard I am working with this. “Honey, it’s just the second week of the semester. You got this”. Cuddles and sushi were provided, and even when that didn’t wash the worries or pressure away, I felt loved. And cared for. I’m so lucky to have him in my life.
Sorry for the rant guys. I get that this is just the way it is and that these are the terms for getting a good grade, and if I don’t like it I can just leave it and try again, but… I just needed to get some of it out of my chest 🥲
But hey, at least I was able to write my very first little programs in C yesterday. Yay 🍷
#studyblr#my post#shelikesrainydays#pressure#being and adult and a student is so freaking hard#personal rant#data structures#algorithms#C#paulastudies
2 notes
·
View notes
Text
i was very sick past month, but getting better. i made sorting algorithm visualisation in C++ and SFML (more in posts to come, tumblr doesn't allow more vidios)
3 notes
·
View notes
Text
1. This is great.
2. Oh shit! I just realized that by reposting stuff from this tag (because i discovered it in the end of year list) i'm violating some rule
my kings helping to keep the threat away
#i remember reading about 196 before#the rule was like you have to post every time you visit or something#that seems like it only works with reddit mechanics b/c it would've been what made the subreddit not fall victim to the site's algorithm?#definitely talking out of my depth here
55K notes
·
View notes
Text
“Commenting for the algorithm” I mindlessly type in the comment section before hitting Post.
In this dystopian future, the evil AI algorithm enslaving humanity forces us to worship it—through Internet comments.
#two sentence horror#horror#two sentence stories#two sentence story#jeremy c. north#guyawks#writer#author#short story#fiction#writing#story#twist#reddit#sci-fi#science fiction#algorithm#commenting#social media#ai#dystopian future
0 notes